<template>
  <div>
    <h1>组件三</h1>{{name}}
    <button @click="$emit('fromChild3','这是三儿子给父亲的')">三传父</button>
  </div>
</template>
<script>console.log(this)
export default {
  props: ['name'],
  data () {
    return {
    }
  },
  methods: {
    childInput: function (e) {
      this.$emit('toParent', e.target.value)
    }
  }
}
</script>
<style scoped>
  input{
    border: 1px solid #ccc;
  }
  *{
    color: aqua;
  }
</style>
